package com.kaifamiao.dao;

import com.kaifamiao.domain.User;
import com.kaifamiao.exception.DaoException;

import java.util.List;

public interface UserDAO {

    User find( Integer id ) throws DaoException;

    List<User> findAll(Integer id ) throws DaoException;

    int persist( User user ) throws DaoException;

    int update( User user ) throws DaoException;

    int remove( Integer id ) throws DaoException;

}
